package com.example.chenjun.myapplication.net.netcallback;

import com.google.gson.Gson;

import org.json.JSONArray;
import org.json.JSONObject;

public abstract class ListCallback<T> extends BaseCallback<T> {
    @Override
    protected T parse(JSONObject json) {
        JSONArray array = json.optJSONArray("result");
        return new Gson().fromJson(array.toString(), mType);
    }
}
